﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Lidgren.Network;
using Model.LiveControl;

namespace Network.Messages.LiveControl.S2C
{
    public class S2CRequestRecoverControlMessage : NovaMessage
    {

        public S2CRequestRecoverControlMessage() : base((ushort)CustomMessageType.S2CRequestRecoverControlMessage)
        {
        }

        
        public bool FlagForce;

        public override void WritePayload(NetOutgoingMessage message)
        {
            base.WritePayload(message);
            message.Write(FlagForce);
        }

        public override void ReadPayload(NetIncomingMessage message)
        {
            base.ReadPayload(message);
            FlagForce = message.ReadBoolean();
        }
    }
}
